package chap15;

import java.util.EnumSet;
import java.util.Set;

public class BasicGeneratorDemo {
	public static void main(String[] args) {
		//BasicGenerator<CountedObject> gen=BasicGenerator.
		//		<CountedObject>create(CountedObject.class);
		BasicGenerator<CountedObject> gen=new BasicGenerator<>(CountedObject.class);
		for(int i=0;i<5;i++){
			System.out.println(gen.next());
		}
		
	}

}
